package com.foreverwin.mes.lims.mapper;

import com.foreverwin.mes.lims.model.InspectExec;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.foreverwin.mes.lims.model.InspectExecDetail;
import com.foreverwin.mes.lims.model.InspectProjectDetail;
import com.foreverwin.mes.lims.vo.ProjectArrayVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Levy
 * @since 2020-02-28
 */
@Repository
public interface InspectExecMapper extends BaseMapper<InspectExec> {

    public List<InspectExecDetail> selectProjectByPlanBo(@Param("planBo") String planBo, @Param("type") String type, @Param("task") String task);


    /**
     * 根据任务查找对应的项目数组
     * @param task
     * @param param
     * @param site
     * @return
     */
    public List<ProjectArrayVo> selectProjectArrayByTask(@Param("task") String task, @Param("param") String param, @Param("site") String site);
}